.class Lcom/TwinBlade/PicturePassword/u;
.super Landroid/os/AsyncTask;
.source "SourceFile"


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/Crop;


# direct methods
.method private constructor <init>(Lcom/TwinBlade/PicturePassword/Crop;)V
    .locals 0
    .parameter

    .prologue
    .line 257
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/TwinBlade/PicturePassword/Crop;Lcom/TwinBlade/PicturePassword/u;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 257
    invoke-direct {p0, p1}, Lcom/TwinBlade/PicturePassword/u;-><init>(Lcom/TwinBlade/PicturePassword/Crop;)V

    return-void
.end method


# virtual methods
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Boolean;
    .locals 6
    .parameter

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 268
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/Crop;->c(Lcom/TwinBlade/PicturePassword/Crop;)Lcom/TwinBlade/PicturePassword/TouchImageView;

    move-result-object v1

    invoke-virtual {v1, v5}, Lcom/TwinBlade/PicturePassword/TouchImageView;->getDrawingCache(Z)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;Landroid/graphics/Bitmap;)V

    .line 271
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->d(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/graphics/Bitmap;

    move-result-object v0

    if-nez v0, :cond_0

    .line 272
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/Crop;->c(Lcom/TwinBlade/PicturePassword/Crop;)Lcom/TwinBlade/PicturePassword/TouchImageView;

    move-result-object v1

    iget v1, v1, Lcom/TwinBlade/PicturePassword/TouchImageView;->b:I

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/Crop;->c(Lcom/TwinBlade/PicturePassword/Crop;)Lcom/TwinBlade/PicturePassword/TouchImageView;

    move-result-object v2

    iget v2, v2, Lcom/TwinBlade/PicturePassword/TouchImageView;->c:I

    sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v1, v2, v3}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;Landroid/graphics/Bitmap;)V

    .line 273
    new-instance v0, Landroid/graphics/Canvas;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/Crop;->d(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 274
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/Crop;->c(Lcom/TwinBlade/PicturePassword/Crop;)Lcom/TwinBlade/PicturePassword/TouchImageView;

    move-result-object v1

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/Crop;->c(Lcom/TwinBlade/PicturePassword/Crop;)Lcom/TwinBlade/PicturePassword/TouchImageView;

    move-result-object v2

    iget v2, v2, Lcom/TwinBlade/PicturePassword/TouchImageView;->b:I

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/Crop;->c(Lcom/TwinBlade/PicturePassword/Crop;)Lcom/TwinBlade/PicturePassword/TouchImageView;

    move-result-object v3

    iget v3, v3, Lcom/TwinBlade/PicturePassword/TouchImageView;->c:I

    invoke-virtual {v1, v4, v4, v2, v3}, Lcom/TwinBlade/PicturePassword/TouchImageView;->layout(IIII)V

    .line 275
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/Crop;->c(Lcom/TwinBlade/PicturePassword/Crop;)Lcom/TwinBlade/PicturePassword/TouchImageView;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/TwinBlade/PicturePassword/TouchImageView;->draw(Landroid/graphics/Canvas;)V

    .line 278
    :cond_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->d(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 279
    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object v0

    const-string v1, "mounted"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 280
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/Crop;->getExternalFilesDir(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    .line 281
    if-nez v0, :cond_2

    .line 282
    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "/PPAData"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 283
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_1

    .line 285
    :try_start_0
    invoke-virtual {v0}, Ljava/io/File;->mkdir()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 289
    :cond_1
    :goto_0
    new-instance v1, Ljava/io/File;

    const-string v2, ".nomedia"

    invoke-direct {v1, v0, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 290
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_2

    .line 292
    :try_start_1
    invoke-virtual {v1}, Ljava/io/File;->createNewFile()Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 297
    :cond_2
    :goto_1
    new-instance v1, Ljava/io/File;

    const-string v2, "PhotoData.jpg"

    invoke-direct {v1, v0, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 298
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/Crop;->d(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-static {v0, v1, v2}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;Ljava/io/File;Landroid/graphics/Bitmap;)Z

    .line 301
    :cond_3
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/Crop;->d(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/Crop;->b(Lcom/TwinBlade/PicturePassword/Crop;Landroid/graphics/Bitmap;)Z

    move-result v0

    .line 302
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    .line 306
    :goto_2
    return-object v0

    .line 304
    :cond_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    const v2, 0x7f0900b6

    invoke-virtual {v1, v2}, Lcom/TwinBlade/PicturePassword/Crop;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x4

    invoke-static {v0, v1, v2, v5}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 305
    invoke-static {}, Lorg/acra/ACRA;->getErrorReporter()Lorg/acra/ErrorReporter;

    move-result-object v0

    new-instance v1, Lcom/TwinBlade/PicturePassword/av;

    const-string v2, "Getting TouchImageView Drawable Returned Null"

    invoke-direct {v1, v2}, Lcom/TwinBlade/PicturePassword/av;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lorg/acra/ErrorReporter;->a(Ljava/lang/Throwable;)V

    .line 306
    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_2

    .line 286
    :catch_0
    move-exception v1

    goto :goto_0

    .line 293
    :catch_1
    move-exception v1

    goto :goto_1
.end method

.method protected a(Ljava/lang/Boolean;)V
    .locals 2
    .parameter

    .prologue
    .line 312
    :try_start_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->b(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 316
    :goto_0
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, -0x1

    :goto_1
    invoke-virtual {v1, v0}, Lcom/TwinBlade/PicturePassword/Crop;->setResult(I)V

    .line 317
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/Crop;->finish()V

    .line 318
    return-void

    .line 316
    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    .line 313
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method protected varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/TwinBlade/PicturePassword/u;->a([Ljava/lang/Void;)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p0, p1}, Lcom/TwinBlade/PicturePassword/u;->a(Ljava/lang/Boolean;)V

    return-void
.end method

.method protected onPreExecute()V
    .locals 6

    .prologue
    const/4 v5, 0x1

    .line 259
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    const v3, 0x7f0900b4

    invoke-virtual {v2, v3}, Lcom/TwinBlade/PicturePassword/Crop;->getString(I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    const v4, 0x7f0900b5

    invoke-virtual {v3, v4}, Lcom/TwinBlade/PicturePassword/Crop;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v2, v3, v5}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Landroid/app/ProgressDialog;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/Crop;->a(Lcom/TwinBlade/PicturePassword/Crop;Landroid/app/ProgressDialog;)V

    .line 260
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->b(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/app/ProgressDialog;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 261
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->b(Lcom/TwinBlade/PicturePassword/Crop;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    .line 263
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->c(Lcom/TwinBlade/PicturePassword/Crop;)Lcom/TwinBlade/PicturePassword/TouchImageView;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/TwinBlade/PicturePassword/TouchImageView;->setDrawingCacheEnabled(Z)V

    .line 264
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/u;->a:Lcom/TwinBlade/PicturePassword/Crop;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Crop;->c(Lcom/TwinBlade/PicturePassword/Crop;)Lcom/TwinBlade/PicturePassword/TouchImageView;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/TwinBlade/PicturePassword/TouchImageView;->buildDrawingCache(Z)V

    .line 265
    return-void
.end method
